<template>
  <!--机构介绍-->
  <div>
    <carousel :autoplaySpeed="autoplaySpeed" :Img="Img"></carousel>
    <v_menu :title="data.title" :site="data.list[activeIndex].list"></v_menu>

    <Row :gutter="16" class="wrapper">
      <i-col span="19" class="content">
        <div v-if="data.introduce" v-html="data.introduce" class="d"></div>
      </i-col>
      <i-col span="5" class="navigation">
        <ngn :data="data" :activeIndex="activeIndex"></ngn>
      </i-col>
    </Row>

  </div>
</template>

<script>
  import carousel from '../module/carousel'
  import ngn from '../module/ngn'
  import v_menu from '../module/menu'

  export default {
    components: {carousel, ngn, v_menu},
    data() {
      return {
        activeIndex: 0,
        autoplaySpeed: 100000,
        organizationIntroduceLink: this.$api.url + '/organization/selectOrg',
        Img: [
          {
            id: 1,
            imageLocation: require('../../assets/img/u69.jpg'),
            state: true,
            uri: "",
          },
        ],
        data: {
          title: '关于机构',
          list: [
            {list: '机构介绍', link: '/organizationIntroduce'},
            {list: '专家顾问', link: '/consultants'},
            {list: '组织结构', link: '/organizationStructure'},
            {list: '联系方式', link: '/contactWay'},
            {list: '期刊加盟', link: '/journalsJoin'},
          ],
          introduce: []
        },
      }
    },
    mounted() {
      this.dataArray()
    },
    methods: {
      dataArray() {
        this.$axios.get(this.organizationIntroduceLink).then((res) => {
          this.data.introduce = res.data[0].content
        });
      }
    }
  }
</script>

<style scoped>
  /*主要内容*/
  .wrapper .content {
    border-right: 1px solid #ccc;
    min-height: 300px;
  }

  .wrapper .content .d {
    line-height: 20px;
    font-size: 14px;
    color: #333;
  }

  .wrapper .navigation {
    padding-left: 0 !important;
  }
</style>
